package com.baige.service.merchant.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品的上下架记录
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods_shelves_record")
public class GoodsShelvesRecord extends Model<GoodsShelvesRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 商品id
     */
    @TableField("goods_id")
    private String goodsId;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 上架时间
     */
    @TableField("shelves_time")
    private Date shelvesTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
